<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="utf-8" %>
<!doctype html>
<html lang="zh">
<head>
    <title>业务表单</title>
    <%@include file="/common/header.jspf"%>
    <style type="text/css">
        .observe{width: 900px;}
        .watch,.observation,.examine{width: 883px;margin: 10px auto;clear: both}
        .watch h3,.observation h3,.examine h3{font-size: 18px;color: #0565b9;text-align: center;font-weight: normal;}
        .watch-table{width: 881px;margin-top: 10px;border: 1px solid #BFBFBF}
        .watch-table tr td{padding: 8px 5px;font-size: 12px;color: #090909;border-bottom: 1px solid #BFBFBF;border-right: 1px solid #BFBFBF}
        .watch-table tr td span{color: #f70a0a;font-size: 14px;}
        .watch-td{text-align: center;background: #bbe6f7}
        .watch-table tr .watch-tdA{border-right: none}
        .watch-table .watch-tr td{border-bottom: none}
        .observation p{font-size: 12px;color: #3b3b3c;margin-top: 5px;}
        .reaction{width: 218px;border: 1px solid #C9C9C9;margin-top: 10px;float: left}
        .reaction li{padding: 3px 0;color: #363637}
        .reaction .reaction-first{padding: 8px 0;background: #bbe6f7;font-size: 14px;color: #0a0a0a}
        .reaction .option{width: 16px;height: 16px;margin-left: 5px;margin-right: 5px;}
        .careful{width: 875px;border:1px solid #C9C9C9;border-top: none;clear: both;}
        .careful p{padding: 5px 0 5px 5px;}

        .wins>span{
            width: 90%!important;
        }
    </style>
</head>
<body>
<div class="observe">
    <input id="auth" value="${auth}" hidden/>
    <form id="cardForm" method="post">
        <c:choose>
            <c:when test="${auth=='no'}">
                <div class="watch">
                    <input type="hidden" name="id" value="${monthReport.id}"  />
                    <table cellspacing="0" cellpadding="0" class="watch-table">
                        <tr>
                            <td class="watch-td">年度<span>*</span></td>
                            <td colspan="3" class="wins watch-tdA">
                                    ${monthReport.obsYear}
                            </td>
                            <td class="watch-td">月度<span>*</span></td>
                            <td colspan="3" class="wins watch-tdA">
                                    ${monthReport.obsMonth}
                            </td>
                        </tr>
                        <tr>
                            <td class="watch-td">单位名称<span>*</span></td>
                            <td colspan="3" class="wins">${monthReport.deptName}</td>
                            <td class="watch-td">单位性质</td>
                            <td colspan="3" class="watch-tdA wins">
                                    ${monthReport.obsUnitType}
                            </td>
                        </tr>
                        <tr>
                            <td class="watch-td">报表名称<span>*</span></td>
                            <td colspan="3" class="watch-tdA wins">
                                    ${monthReport.obsName}
                            </td>
                            <td class="watch-td">情况描述(限4000字)<span>*</span></td>
                            <td colspan="3" class="watch-tdA wins">
                                    ${monthReport.obsAllDos}
                            </td>
                        </tr>
                        <tr>
                            <td class="watch-td">分析结论(限4000字)<span>*</span></td>
                            <td colspan="3" class="watch-tdA wins">
                                    ${monthReport.obsAnsRes}
                            </td>
                            <td class="watch-td">建议措施和实际改进情况<span>*</span></td>
                            <td colspan="3" class="watch-tdA wins">
                                    ${monthReport.obsAdv}
                            </td>
                        </tr>
                        <tr>
                            <td class="watch-td">HSE观察统计表<span>*</span></td>
                            <td colspan="7" class="watch-tdA wins" style="height: 200px">
                                <table id="tg2">

                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td class="watch-td">被观察人数<span>*</span></td>
                            <td colspan="3" class="watch-tdA wins">
                                    ${monthReport.peopleObsNum}
                            </td>
                            <td class="watch-td">不安全行为人数<span>*</span></td>
                            <td colspan="3" class="watch-tdA wins">
                                    ${monthReport.actNum}
                            </td>
                        </tr>
                        <tr>
                            <td class="watch-td">不安全问题数<span>*</span></td>
                            <td colspan="3" class="watch-tdA wins">
                                    ${monthReport.unsafeNum}
                            </td>
                            <td class="watch-td">登记人<span>*</span></td>
                            <td colspan="3" class="watch-tdA wins">
                                    ${monthReport.addUserName}
                            </td>

                        </tr>
                        <tr>
                            <td class="watch-td">登记部门<span>*</span></td>
                            <td colspan="3" class="watch-tdA wins">
                                    ${monthReport.addDeptName}
                            </td>
                            <td class="watch-td">登记日期<span>*</span></td>
                            <td colspan="3" class="watch-tdA wins">
                                    ${monthReport.addTime}
                            </td>
                        </tr>
                    </table>
                </div>
            </c:when>
            <c:otherwise>
        <div class="watch">
            <input type="hidden" name="id" value="${monthReport.id}"  />
            <table cellspacing="0" cellpadding="0" class="watch-table">
                <tr>
                    <td class="watch-td">年度<span>*</span></td>
                    <td colspan="3" class="wins watch-tdA">
                        <select class="easyui-combobox" id="obsYear" name="obsYear" style="width:100%" data-options="required:true,editable:false,selectOnNavigation:true">
                            <c:forEach var="i" begin="2000" end="2050" varStatus="status">
                                <option value="${i}" <c:if test="${i==monthReport.obsYear}">selected</c:if>>${i}</option>
                            </c:forEach>
                        </select>
                    </td>
                    <td class="watch-td">月度<span>*</span></td>
                    <td colspan="3" class="wins watch-tdA">
                        <select class="easyui-combobox" id="obsMonth" name="obsMonth" style="width:100%" data-options="required:true,editable:false,selectOnNavigation:true">
                            <c:forEach var="j" begin="1" end="12" varStatus="status">
                                <option value="${j}" <c:if test="${j==monthReport.obsMonth}">selected</c:if>>${j}</option>
                            </c:forEach>
                        </select>
                    </td>
                </tr>
                <tr>
                    <td class="watch-td">单位名称<span>*</span></td>
                    <td colspan="3" class="wins"><input id="obsUnitId" class="easyui-textbox formInput parentDepartmentId" name="obsUnitId" value="${monthReport.obsUnitId}"/></td>
                    <td class="watch-td">单位性质</td>
                    <td colspan="3" class="watch-tdA wins">
                        <select class="easyui-combobox" name="obsUnitType" style="width:100%" data-options="editable:false,selectOnNavigation:true">
                            <option></option>
                            <option value="股份" <c:if test="${'股份'==monthReport.obsUnitType}">selected</c:if>>股份</option>
                            <option value="存续" <c:if test="${'存续'==monthReport.obsUnitType}">selected</c:if>>存续</option>
                            <option value="合资" <c:if test="${'合资'==monthReport.obsUnitType}">selected</c:if>>合资</option>
                        </select>
                    </td>
                </tr>
                <tr>
                    <td class="watch-td">报表名称<span>*</span></td>
                    <td colspan="3" class="watch-tdA wins">
                        <input id="obsName" class="easyui-textbox formInput"  name="obsName" data-options="multiline:true" style="height: 100px" value="${monthReport.obsName}" readonly/>
                    </td>
                    <td class="watch-td">情况描述(限4000字)<span>*</span></td>
                    <td colspan="3" class="watch-tdA wins">
                        <input id="obsAllDos" class="easyui-textbox formInput"  name="obsAllDos"  data-options="multiline:true" style="height: 100px" value="${monthReport.obsAllDos}"/>
                    </td>
                </tr>
                <tr>
                    <td class="watch-td">分析结论(限4000字)<span>*</span></td>
                    <td colspan="3" class="watch-tdA wins">
                        <input id="obsAnsRes" class="easyui-textbox formInput"  name="obsAnsRes"  data-options="multiline:true" style="height: 100px" value="${monthReport.obsAnsRes}"/>
                    </td>
                    <td class="watch-td">建议措施和实际改进情况<span>*</span></td>
                    <td colspan="3" class="watch-tdA wins">
                        <input id="obsAdv" class="easyui-textbox formInput"  name="obsAdv"  data-options="multiline:true" style="height: 100px" value="${monthReport.obsAdv}"/>
                    </td>
                </tr>
                <tr>
                    <td class="watch-td">HSE观察统计表<span>*</span></td>
                    <td colspan="7" class="watch-tdA wins" style="height: 200px">
                        <table id="tg2">

                        </table>
                    </td>
                </tr>
                <tr>
                    <td class="watch-td">被观察人数<span>*</span></td>
                    <input name="peopleObsNum" hidden value="${monthReport.peopleObsNum}"/>
                    <td colspan="3" class="watch-tdA wins" id="obsNum">
                        ${monthReport.peopleObsNum}
                    </td>
                    <td class="watch-td">不安全行为人数<span>*</span></td>
                    <input name="actNum" hidden value="${monthReport.actNum}"/>
                    <td colspan="3" class="watch-tdA wins" id="obsUnSafeNum">
                        ${monthReport.actNum}
                    </td>
                </tr>
                <tr>
                    <td class="watch-td">不安全问题数<span>*</span></td>
                    <input name="unsafeNum" hidden value="${monthReport.unsafeNum}"/>
                    <td colspan="3" class="watch-tdA wins" id="obsProblemNum">
                        ${monthReport.unsafeNum}
                    </td>
                    <td class="watch-td">登记人<span>*</span></td>
                    <td colspan="3" class="watch-tdA wins">
                        <input name="addUserId" value="${monthReport.addUserId}" hidden/>
                        ${monthReport.addUserName}
                    </td>

                </tr>
                <tr>
                    <td class="watch-td">登记部门<span>*</span></td>
                    <td colspan="3" class="watch-tdA wins">
                        <input name="addDeptId" value="${monthReport.addDeptId}" hidden/>
                        ${monthReport.addDeptName}
                    </td>
                    <td class="watch-td">登记日期<span>*</span></td>
                    <td colspan="3" class="watch-tdA wins">
                        <input name="addTime" value="${monthReport.addTime}" hidden/>
                        ${monthReport.addTime}
                    </td>
                </tr>
            </table>
        </div>
            </c:otherwise>
        </c:choose>
    </form>
    <c:if test="${auth=='yes'}">
    <div style="text-align:center;padding:5px">
        <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="fa fa-save fa-lg" id="cardReportSave" >保存</a>
    </div>
    </c:if>
</div>
<script type="text/javascript" src="${ctx}/resources/js/observation/observationMonthReport/edit.js"></script>
</body>
</html>

